\documentclass{article}
\usepackage{amsmath}

\begin{document}
\lvert 10 \rvert
\end{document}
